package com.bilibili.sys.dao;

import com.bilibili.sys.bean.SysMenu;
import com.bilibili.sys.utils.PageUtils;

import java.util.List;

/**
 * @author alpha
 * @program: BookSystem
 * @description:
 * @since 2024-03-28 15:31
 **/

public interface IMenuDao {
    public List<SysMenu> list(SysMenu entity);
    public List<SysMenu> listPage(PageUtils pageUtils);
    public int save(SysMenu entity);
    public  SysMenu findById(int id);
    public int updateById(SysMenu entity);

    int deleteById(int id);

    int count(PageUtils pageUtils);

    List<SysMenu> getAllParent();

    boolean isDispatcher(int id);

    boolean haveSubMenu(int id);
}
